#include "CriticalAutoLock.h"
#include <afxmt.h>
CCriticalAutoLock::CCriticalAutoLock(CCriticalSection& aCriticalSection)
{
	m_pCriticalSection = &aCriticalSection;
	m_pCriticalSection->Lock();
}

CCriticalAutoLock::~CCriticalAutoLock(void)
{
	m_pCriticalSection->Unlock();
}
